package com.unytech.wisdomcommunity.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;
import com.unytech.wisdomcommunity.R;

public class FreshManGuideActivity extends AppCompatActivity {

    private ImageView freshManGuide_iv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fresh_man_guide);

        freshManGuide_iv = ((ImageView) findViewById(R.id.freshmanguide_iv));

        Picasso.with(this)
                .load(R.drawable.freshmanguide)
                .placeholder(R.mipmap.ic_launcher) //指定图片未加载成功前显示的图片
                .error(R.mipmap.ic_launcher)// 指定图片加载失败显示的图片
                //.centerCrop()// 指定图片缩放类型为centerCrop
                //.memoryPolicy(MemoryPolicy.NO_CACHE, MemoryPolicy.NO_STORE)// 指定内存缓存策略
                //.priority(Picasso.Priority.HIGH)// 指定优先级
                .into(freshManGuide_iv);
    }
}